//package cn.wanda.bi.sunshine.platform.server.controller.authorize;
//
//import java.util.List;
//
//import cn.wanda.bi.sunshine.platform.server.aspect.CheckLimit;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import cn.wanda.bi.sunshine.platform.server.aspect.Logging;
//import cn.wanda.bi.sunshine.platform.server.bean.model.AuthMapping;
//import cn.wanda.bi.sunshine.platform.server.controller.response.common.SimpleResponse;
//import cn.wanda.bi.sunshine.platform.server.service.AuthMappingService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//
///**
// * Created by wangfupeng1
// */
//@Api(description = "第三方appid管理")
////@RestController
////    @RequestMapping(value = "/v1/auth/mapping", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//public class AuthorizeAuthMappingController implements Logging {
//
//    public static final Logger logger = LoggerFactory.getLogger(AuthorizeAuthMappingController.class);
//
//    @Autowired
//    private AuthMappingService authMappingService;
//
//    @ApiOperation("新建第三方appid")
//    //    @RequestMapping(value = "/add", method = RequestMethod.POST)
//    SimpleResponse<AuthMapping> create(
//    		@RequestBody AuthMapping authMapping
//            ) {
//        return authMappingService.create(authMapping);
//    }
//
//    @ApiOperation("读取第三方appid")
//    //    @RequestMapping(value = "/{appid}", method = RequestMethod.GET)
//    SimpleResponse<AuthMapping> get(
//    		@ApiParam(value = "第三方appid") @PathVariable String appid
//            ) {
//        return authMappingService.get(appid);
//    }
//
//    @ApiOperation("更新第三方appid")
//    //    @RequestMapping(value = "/update", method = RequestMethod.POST)
//    SimpleResponse<AuthMapping> update(
//    		@RequestBody AuthMapping authMapping
//            ) {
//        return authMappingService.update(authMapping);
//    }
//
//    @ApiOperation("删除第三方appid")
//    //    @RequestMapping(value = "/delete/{appid}", method = RequestMethod.GET)
//    SimpleResponse delete(
//    		@ApiParam(value = "第三方appid") @PathVariable String appid
//            ) {
//        return authMappingService.delete(appid);
//    }
//
//    @CheckLimit
//    @ApiOperation("查询第三方appid列表")
//    //    @RequestMapping(value = "/list", method = RequestMethod.GET)
//    SimpleResponse<List<AuthMapping>> list(
//    		@ApiParam(value = "页码") @RequestParam(value="index", defaultValue="1") Integer index,
//    		@ApiParam(value = "每页多少条") @RequestParam(value="limit", defaultValue="10") Integer limit,
//    		@ApiParam(value = "描述，支持模糊查询") @RequestParam(value="description", required=false) String description
//            ) {
//        return authMappingService.list(index,limit,description);
//    }
//
//}
